package com.lanyun.aicorrectassistant.basic.service.impl;

import com.lanyun.aicorrectassistant.basic.dao.AuthUserDao;
import com.lanyun.aicorrectassistant.basic.entity.AuthUser;
import com.lanyun.aicorrectassistant.basic.service.AuthUserService;
import org.springframework.stereotype.Service;
import jakarta.annotation.Resource;
import java.util.List;

/**
 * 用户表(AuthUser)服务实现
 *
 * @author makejava
 * @since 2025-05-12 01:53:15
 */
@Service
public class AuthUserServiceImpl implements AuthUserService {
    
    @Resource
    private AuthUserDao authUserDao;

    @Override
    public AuthUser queryById(Long id) {
        return authUserDao.queryById(id);
    }

    @Override
    public AuthUser queryByCondition(AuthUser condition) {
        return authUserDao.queryByCondition(condition);
    }

    @Override
    public List<AuthUser> queryAllByCondition(AuthUser condition) {
        return authUserDao.queryAllByCondition(condition);
    }

    @Override
    public List<AuthUser> page(AuthUser condition, int page, int pageSize) {
        return authUserDao.page(condition, page, pageSize);
    }

    @Override
    public int insert(AuthUser entity) {
        return authUserDao.insert(entity);
    }

    @Override
    public int update(AuthUser entity) {
        return authUserDao.update(entity);
    }

    @Override
    public int deleteById(Long id) {
        return authUserDao.deleteById(id);
    }

    @Override
    public Long count(AuthUser condition) {
        return authUserDao.count(condition);
    }
}
